<!doctype html>
<script>
function test()
{
    if (window.testRunner) {
        testRunner.dumpAsText();
        testRunner.waitUntilDone();
        testRunner.waitUntilExternalURLLoad();

        var a = document.querySelector("#link");
        var evt = new MouseEvent("click", { altKey: true });
        a.dispatchEvent(evt);
    }
}
</script>
<body onload="test()">
<p>Tests that synthesizing alt-click does not result in downloading link. Test passes if no download is observed.</p>
<a href="resources/notify-done.html" id="link">link</a>
</body>
